<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>知乎</title>
    <link rel="stylesheet" type="text/css" href="style.css">
</head>

<body>
    <!--
        https://link.zhihu.com/?target=http%3A//www.agoni.top
    -->
    <div class="logo">
        <a href="https://www.zhihu.com">
            <img src="./img/logo_black_trans.png"
                srcset="./img/logo_black_trans@2x.png 2x" alt="知乎">
        </a>
    </div>
    <div class="wrapper">
        <div class="content">
            <h1>即将离开知乎</h1>
            <p class="info">您即将离开知乎，请注意您的帐号和财产安全。</p>
            <p class="link">http://www.agoni.top</p>
        </div>
        <div class="actions">
            <a class="button" href="http://www.agoni.top">继续访问</a>
        </div>
    </div>
    <script>
        var showTipButton = document.querySelector('.js-show-tip');
        var tipEl = document.querySelector('.tip');
        var showTip = function () {
            tipEl.style.display = 'block';
            tipEl.offsetWidth; // force reflow
            tipEl.className = 'tip is-visible';
            return false;
        };

        var linkEl = document.querySelector('.link');
        var selectLink = function () {
            linkEl.className = 'link is-expanded';
            if (document.body.createTextRange) {
                range = document.body.createTextRange();
                range.moveToElementText(linkEl);
                range.select();
            } else if (window.getSelection) {
                selection = window.getSelection();
                range = document.createRange();
                range.selectNodeContents(linkEl);
                selection.removeAllRanges();
                selection.addRange(range);
            }
            ;
        };

        if (window.addEventListener) {
            if (showTipButton) {
                showTipButton.addEventListener('click', showTip);
            }
            if (linkEl) {
                linkEl.addEventListener('click', selectLink);
            }
        } else {
            if (showTipButton) {
                showTipButton.attachEvent('onclick', showTip);
            }
            if (linkEl) {
                linkEl.attachEvent('onclick', selectLink);
            }
        }
    </script>

</body>

</html>